/**
 * 
 */
package com.sc.softmgr.business.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.acc.softmgr.model.SoftmgrCategory;
import com.acc.softmgr.model.SoftmgrCategoryExample;
import com.sc.softmgr.business.dao.SoftmgrCategoryMapper;
import com.sc.softmgr.business.service.ISoftmgrCategoryService;

/**
 * 
 * @content
 * 
 * @date 2017年5月8日
 * 
 * @author OprCalf
 * 
 */
@Service
public class SoftmgrCategoryServiceImpl implements ISoftmgrCategoryService {

	@Autowired
	private SoftmgrCategoryMapper softmgrCategory;

	@Override
	public long countByExample(SoftmgrCategoryExample example) {
		return softmgrCategory.countByExample(example);
	}

	@Override
	public int deleteByExample(SoftmgrCategoryExample example) {
		return softmgrCategory.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer id) {
		return softmgrCategory.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SoftmgrCategory record) {
		return softmgrCategory.insert(record);
	}

	@Override
	public int insertSelective(SoftmgrCategory record) {
		return softmgrCategory.insertSelective(record);
	}

	@Override
	public int insertList(List<SoftmgrCategory> records) {
		for (SoftmgrCategory record : records) {
			insert(record);
		}
		return 1;
	}

	@Override
	public List<SoftmgrCategory> selectByExample(SoftmgrCategoryExample example) {
		return softmgrCategory.selectByExample(example);
	}

	@Override
	public SoftmgrCategory selectByPrimaryKey(Integer id) {
		return softmgrCategory.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SoftmgrCategory record, SoftmgrCategoryExample example) {
		return softmgrCategory.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SoftmgrCategory record, SoftmgrCategoryExample example) {
		return softmgrCategory.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SoftmgrCategory record) {
		return softmgrCategory.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SoftmgrCategory record) {
		return softmgrCategory.updateByPrimaryKey(record);
	}

}
